import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
import Vue from 'vue'
// import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"

////根路径
// const doMian = "/gci-boot/";
////图片预览请求地址
// const imgView = "http://localhost:8080/gci-boot/sys/common/view/";


//project管理
const getProject = (id)=>getAction("/ef-api/project/"+id);
const getProjectData = (id)=>getAction("/ef-api/project/data"+id);
const saveProject = (params)=>postAction("/ef-api/project",params);
const updateProject = (params)=>putAction("/ef-api/project",params);
const deleteProject = (id)=>deleteAction("/ef-api/project/"+id);
//node管理
const getNode = (id)=>getAction("/ef-api/node/"+id);
const saveNode = (params)=>postAction("/ef-api/node",params);
const updateNode = (params)=>putAction("/ef-api/node",params);
const deleteNode = (id)=>deleteAction("/ef-api/node/"+id);
const changeSiteNode = (params)=>putAction("/ef-api/node",params);
//line管理
const saveLine = (params)=>postAction("/ef-api/line",params);
const deleteLine = (from,to)=>deleteAction("/ef-api/line/"+from+"/"+to);
const changeLabelLine = (params)=>putAction("/ef-api/line",params);

export {
  getProject,
  getProjectData,
  saveProject,
  updateProject,
  deleteProject,
  getNode,
  saveNode,
  updateNode,
  deleteNode,
  changeSiteNode,
  saveLine,
  deleteLine,
  changeLabelLine,
  // imgView,
  // doMian,

  // editRole,
  // checkRoleCode,
  // addUser,
  // editUser,
  // queryUserRole,
  // getUserList,
  // queryall,
  // frozenBatch,
  // checkOnlyUser,
  // changePassword,
  // getPermissionList,
  // addPermission,
  // editPermission,
  // queryTreeList,
  // queryListAsync,
  // queryRolePermission,
  // saveRolePermission,
  // queryPermissionsByUser,
  // loadAllRoleIds,
  // getPermissionRuleList,
  // queryPermissionRule,
  // queryDepartTreeList,
  // queryIdTree,
  // queryParentName,
  // searchByKeywords,
  // deleteByDepartId,
  // deleteLog,
  // deleteLogList,
  // addDict,
  // editDict,
  // treeList,
  // addDictItem,
  // editDictItem,
  // doReleaseData,
  // doReovkeData,
  // getLoginfo,
  // getVisitInfo,
  // queryUserByDepId,
  // duplicateCheck,
  // queryTreeListForRole,
  // getSystemMenuList,
  // getSystemSubmenu,
  // getSystemSubmenuBatch,
  // loadCategoryData,
  // checkRuleByCode,
  // queryDepartPermission,
  // saveDepartPermission,
  // queryTreeListForDeptRole,
  // queryDeptRolePermission,
  // saveDeptRolePermission,
  // queryMyDepartTreeList,
  // getSiteInfo,
  // getUserNoticeInfo,
  // getPlanInfo,
  // getChartData,
  // getPieData,
  // getMettingRoomList,
  // getDictItemsFromCache
}



